﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TGReport.aspx.cs" Inherits="Yule8xWxToolkit.Other.TGReport" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form method="get" action="TGReport.aspx">
        代码：<input type="text" name="tag" /><button type="submit">查询</button>
    </form>
    <div style="width:800px; max-height:650px; overflow:auto;">
        <%
            if (null != dtList)
            {
                Response.Write("<table>");
                foreach(DataColumn col in dtList.Columns)
                {
                    Response.Write(string.Format("<th></th>",col.ColumnName));
                }
                object[] items;
                foreach(DataRow r in dtList.Rows)
                {
                    Response.Write("<tr>");
                    items = r.ItemArray;
                    foreach(object cell in items)
                    {
                        Response.Write(string.Format("<td></td>", cell));
                    }
                    Response.Write("</tr>");
                }
                Response.Write("</table>");
            }
             %>
    </div>
</body>
</html>
